Calculation of quotas